using System;
using TelerikMvcGridCustomBindingHelper.Mapper;

namespace TelerikMvcGridCustomBindingHelper.Exceptions
{
    internal class BooleanSubstituteRegistrationException : Exception
    {
        public IBooleanSubstitute BooleanSubstitute { get; private set; }

        public BooleanSubstituteRegistrationException(IBooleanSubstitute booleanSubstitute, string message)
            : base(message)
        {
            BooleanSubstitute = booleanSubstitute;
        }

        public BooleanSubstituteRegistrationException(IBooleanSubstitute booleanSubstitute)
            : base(string.Format("Could not regitry the BooleanSubstitue: {0}", booleanSubstitute))
        {
            BooleanSubstitute = booleanSubstitute;
        }
    }
}